home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / gcc233.lha / src-patches / libg++-2.2.diff < prev   
Text File  |  1992-08-10  |  24KB  |  1,003 lines

  1. Before applying this patch, make sure you have renamed the following files,
  2. all in libg++/src:
  3.  
  4.   - complex.h -> _complex.h
  5.   - regex.cc  -> _regex.cc
  6.   - regex.h   -> _regex.h
  7.   
  8. If you unpacked libg++-2.2.tar.Z, tar will have overwritten one copy of 
  9. for example Complex.h and complex.h, just make sure that the Complex.h 
  10. you're keeping really is Complex.h, not complex.h!!
  11. -------
  12.  
  13. diff -2rcN libg++-2.2/config/mh-amigados my-libg++-2.2/config/mh-amigados
  14. *** libg++-2.2/config/mh-amigados
  15. --- my-libg++-2.2/config/mh-amigados    Sun Jul  5 01:01:08 1992
  16. ***************
  17. *** 0 ****
  18. --- 1,5 ----
  19. + # do the best you can ;-)
  20. + CC = gcc -O2
  21. + # as long as we don't have a working debugger under AmigaDOS, using
  22. + # -g just wastes disk space, so don't use it
  23. + CFLAGS =
  24. diff -2rcN libg++-2.2/config.sub my-libg++-2.2/config.sub
  25. *** libg++-2.2/config.sub    Fri Jun 26 21:14:14 1992
  26. --- my-libg++-2.2/config.sub    Sun Jul  5 01:07:26 1992
  27. ***************
  28. *** 1,5 ****
  29.   #!/bin/sh
  30. ! # Configuration validation subroutine script, version 1.0.
  31.   #   Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  32.   
  33.   #This file is free software; you can redistribute it and/or modify
  34. --- 1,8 ----
  35.   #!/bin/sh
  36. ! # Configuration validation subroutine script, version 1.1.
  37.   #   Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  38. + # This file is (in principle) common to ALL GNU software.
  39. + # The presence of a machine in this file suggests that SOME GNU software
  40. + # can handle that machine.  It does not imply ALL GNU software can. 
  41.   
  42.   #This file is free software; you can redistribute it and/or modify
  43. ***************
  44. *** 47,51 ****
  45.   
  46.   # Separate what the user gave into CPU-COMPANY and OS (if any).
  47. ! basic_machine=`echo $1 | sed 's/-[^-][^-]*$//'`
  48.   if [ $basic_machine != $1 ]
  49.   then os=`echo $1 | sed 's/.*-/-/'`
  50. --- 50,54 ----
  51.   
  52.   # Separate what the user gave into CPU-COMPANY and OS (if any).
  53. ! basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  54.   if [ $basic_machine != $1 ]
  55.   then os=`echo $1 | sed 's/.*-/-/'`
  56. ***************
  57. *** 53,57 ****
  58.   
  59.   # Lets recognize common machines as not being OS so that things like
  60. ! # config.subr decstation-3100 as legal.
  61.   case $os in
  62.       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  63. --- 56,60 ----
  64.   
  65.   # Lets recognize common machines as not being OS so that things like
  66. ! # config.subr decstation-3100 work.
  67.   case $os in
  68.       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  69. ***************
  70. *** 58,64 ****
  71.       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  72.       -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
  73. !     -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -osf* | \
  74.       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  75. !     -harris)
  76.           os=
  77.           basic_machine=$1
  78. --- 61,67 ----
  79.       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  80.       -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
  81. !     -convergent* | -ncr* | -news | -32* | -3600* | -3100* | \
  82.       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  83. !     -harris | -dolphin)
  84.           os=
  85.           basic_machine=$1
  86. ***************
  87. *** 65,73 ****
  88.           ;;
  89.       -sco*)
  90. !         os=-scosysv322
  91.           basic_machine=i386-unknown
  92.           ;;
  93.       -isc*)
  94. !         os=-iscsysv
  95.           basic_machine=i386-unknown
  96.           ;;
  97. --- 68,76 ----
  98.           ;;
  99.       -sco*)
  100. !         os=-sco3.2v2
  101.           basic_machine=i386-unknown
  102.           ;;
  103.       -isc*)
  104. !         os=-isc
  105.           basic_machine=i386-unknown
  106.           ;;
  107. ***************
  108. *** 77,95 ****
  109.   case $basic_machine in
  110.       # Recognize the basic CPU types with without company name.
  111. !     tahoe | i386 | i860 | m68k | m680[01234]0 | m88k | ns32k | arm | pyramid \
  112. !         | tron | a29k | 580 | i960 | h8300 | v70)
  113.           basic_machine=$basic_machine-unknown
  114.           ;;
  115.       # Recognize the basic CPU types with with company name.
  116. !     vax-* | tahoe-* | i386-* | i860-* | m68k-* | m680[01234]0-* | m88k-* \
  117. !           | sparc-* | ns32k-* | alliant-* | arm-* | c[123]* \
  118.             | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  119.             | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  120. !           | hppa-*)
  121.           ;;
  122.       # Recognize the various machine names and aliases which stand
  123.       # for a CPU type and a company and sometimes even an OS.
  124.       vaxv)
  125.           basic_machine=vax-dec
  126. --- 80,97 ----
  127.   case $basic_machine in
  128.       # Recognize the basic CPU types with without company name.
  129. !     # Some are omitted here because they have special meanings below.
  130. !     tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
  131. !         | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 | we32k)
  132.           basic_machine=$basic_machine-unknown
  133.           ;;
  134.       # Recognize the basic CPU types with with company name.
  135. !     vax-* | tahoe-* | i[34]86-* | i860-* | m68k-* | m68000-* | m88k-* \
  136. !           | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
  137.             | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  138.             | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  139. !           | hppa1.0-* | hppa1.1-* | we32k-*)
  140.           ;;
  141.       # Recognize the various machine names and aliases which stand
  142.       # for a CPU type and a company and sometimes even an OS.
  143.       vaxv)
  144.           basic_machine=vax-dec
  145. ***************
  146. *** 100,107 ****
  147.           os=-vms
  148.           ;;
  149. -     i386mach)
  150. -         basic_machine=i386-mach
  151. -         os=-mach
  152. -         ;;
  153.       i386v32)
  154.           basic_machine=i386-unknown
  155. --- 102,105 ----
  156. ***************
  157. *** 110,126 ****
  158.       i386-sco* | i386sco | sco)
  159.           basic_machine=i386-unknown
  160. !         os=-scosysv322
  161.           ;;
  162. -     go32 | i386-go32)
  163. -         basic_machine=i386-unknown
  164. -         os=-go32
  165. -         ;;
  166.       i386-isc* | isc)
  167.           basic_machine=i386-unknown
  168. !         os=-iscsysv
  169. !         ;;
  170. !     i386-linux* | linux)
  171. !         basic_machine=i386-unknown
  172. !         os=-linux
  173.           ;;
  174.       i386v4*)
  175. --- 108,116 ----
  176.       i386-sco* | i386sco | sco)
  177.           basic_machine=i386-unknown
  178. !         os=-sco3.2v2
  179.           ;;
  180.       i386-isc* | isc)
  181.           basic_machine=i386-unknown
  182. !         os=-isc
  183.           ;;
  184.       i386v4*)
  185. ***************
  186. *** 128,131 ****
  187. --- 118,125 ----
  188.           os=-sysv4
  189.           ;;
  190. +     i486v4*)
  191. +         basic_machine=i486-unknown
  192. +         os=-sysv4
  193. +         ;;
  194.       i386v)
  195.           basic_machine=i386-unknown
  196. ***************
  197. *** 135,160 ****
  198.           basic_machine=spur-unknown
  199.           ;;
  200. !     alliant)
  201. !         basic_machine=alliant-alliant
  202.           ;;
  203.       convex-c1)
  204.           basic_machine=c1-convex
  205. !         os=-sysv
  206.           ;;
  207.       convex-c2)
  208.           basic_machine=c2-convex
  209. !         os=-sysv
  210.           ;;
  211.       convex-c32)
  212.           basic_machine=c32-convex
  213. !         os=-sysv
  214.           ;;
  215.       convex-c34)
  216.           basic_machine=c34-convex
  217. !         os=-sysv
  218.           ;;
  219.       convex-c38)
  220.           basic_machine=c38-convex
  221. !         os=-sysv
  222.           ;;
  223.       m88k-omron*)
  224. --- 129,154 ----
  225.           basic_machine=spur-unknown
  226.           ;;
  227. !     alliant | fx80)
  228. !         basic_machine=fx80-alliant
  229.           ;;
  230.       convex-c1)
  231.           basic_machine=c1-convex
  232. !         os=-bsd
  233.           ;;
  234.       convex-c2)
  235.           basic_machine=c2-convex
  236. !         os=-bsd
  237.           ;;
  238.       convex-c32)
  239.           basic_machine=c32-convex
  240. !         os=-bsd
  241.           ;;
  242.       convex-c34)
  243.           basic_machine=c34-convex
  244. !         os=-bsd
  245.           ;;
  246.       convex-c38)
  247.           basic_machine=c38-convex
  248. !         os=-bsd
  249.           ;;
  250.       m88k-omron*)
  251. ***************
  252. *** 170,174 ****
  253.       encore | umax | mmax)
  254.           basic_machine=ns32k-encore
  255. !         os=-sysv
  256.           ;;
  257.       genix)
  258. --- 164,168 ----
  259.       encore | umax | mmax)
  260.           basic_machine=ns32k-encore
  261. !         os=-bsd
  262.           ;;
  263.       genix)
  264. ***************
  265. *** 175,185 ****
  266.           basic_machine=ns32k-ns
  267.           ;;
  268. !     iris | iris3 | iris4d)
  269. !         basic_machine=mips-sgi
  270. !         os=-irix3
  271. !         ;;
  272. !     iris4)
  273.           basic_machine=mips-sgi
  274. !         os=-irix4
  275.           ;;
  276.       news | news700 | news800 | news900)
  277. --- 169,181 ----
  278.           basic_machine=ns32k-ns
  279.           ;;
  280. !     iris | iris4d)
  281.           basic_machine=mips-sgi
  282. !         case $os in
  283. !             -irix*)
  284. !             ;;
  285. !             *)
  286. !             os=-irix4
  287. !             ;;
  288. !         esac
  289.           ;;
  290.       news | news700 | news800 | news900)
  291. ***************
  292. *** 188,193 ****
  293.           ;;
  294.       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  295. !         basic_machine=m68k-att
  296.           ;;
  297.       delta | 3300 | motorola-3300 | motorola-delta \
  298.             | 3300-motorola | delta-motorola)
  299. --- 184,192 ----
  300.           ;;
  301.       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  302. !         basic_machine=m68000-att
  303.           ;;
  304. +     3b*)
  305. +         basic_machine=we32k-att
  306. +         ;;
  307.       delta | 3300 | motorola-3300 | motorola-delta \
  308.             | 3300-motorola | delta-motorola)
  309. ***************
  310. *** 232,239 ****
  311.           os=-sunos4
  312.           ;;
  313. -     sun4sol2)
  314. -         basic_machine=sparc-sun
  315. -         os=-solaris2
  316. -         ;;
  317.       sun3)
  318.           basic_machine=m68k-sun
  319. --- 231,234 ----
  320. ***************
  321. *** 243,248 ****
  322.           ;;
  323.       pbd)
  324. !         basic_machine=sparc-unicom
  325.           ;;
  326.       sun386 | sun386i | roadrunner)
  327.           basic_machine=i386-sun
  328. --- 238,246 ----
  329.           ;;
  330.       pbd)
  331. !         basic_machine=sparc-tti
  332.           ;;
  333. +     pbb)
  334. +         basic_machine=m68k-tti
  335. +         ;;
  336.       sun386 | sun386i | roadrunner)
  337.           basic_machine=i386-sun
  338. ***************
  339. *** 251,254 ****
  340. --- 249,255 ----
  341.           basic_machine=i386-ibm
  342.           ;;
  343. +     fx2800)
  344. +         basic_machine=i860-alliant
  345. +         ;;
  346.       next)
  347.           basic_machine=m68k-next
  348. ***************
  349. *** 255,258 ****
  350. --- 256,262 ----
  351.           os=-bsd
  352.           ;;
  353. +     amiga)
  354. +         basic_machine=m68k-cbm
  355. +         ;;
  356.       hp9k3[2-9][0-9])
  357.           basic_machine=m68k-hp
  358. ***************
  359. *** 261,267 ****
  360.           basic_machine=m68000-hp
  361.           ;;
  362. !     hp9k8[0-9][0-9] | hp9k7[0-9][0-9] | hp8[0-9][0-9] | hp7[0-9][0-9])
  363. !         basic_machine=hp800-hp
  364.           ;;
  365.       isi68 | isi)
  366.           basic_machine=m68k-isi
  367. --- 265,274 ----
  368.           basic_machine=m68000-hp
  369.           ;;
  370. !     hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  371. !         basic_machine=hppa1.1-hp
  372.           ;;
  373. +     hp9k8[0-9][0-9] | hp8[0-9][0-9])
  374. +         basic_machine=hppa1.0-hp
  375. +         ;;
  376.       isi68 | isi)
  377.           basic_machine=m68k-isi
  378. ***************
  379. *** 272,279 ****
  380.           os=-sysv
  381.           ;;
  382. -     apollo68bsd)
  383. -         basic_machine=m68k-apollo
  384. -         os=-bsd
  385. -         ;;
  386.       altos | altos3068)
  387.           basic_machine=m68k-altos
  388. --- 279,282 ----
  389. ***************
  390. *** 289,296 ****
  391.           os=-newsos
  392.           ;;
  393. !     st2000)
  394. !         basic_machine=m68kmote-tandem
  395. !         ;;
  396. !     decstation-dec | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
  397.           basic_machine=mips-dec
  398.           ;;
  399. --- 292,296 ----
  400.           os=-newsos
  401.           ;;
  402. !     decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
  403.           basic_machine=mips-dec
  404.           ;;
  405. ***************
  406. *** 320,328 ****
  407.       amigaunix | amix)
  408.           basic_machine=m68k-cbm
  409. !         os=-sysv4
  410. !         ;;
  411. !     stratus)
  412. !         basic_machine=i860-stratus
  413. !         os=-sysv4
  414.           ;;
  415.       cray | ymp)
  416. --- 320,324 ----
  417.       amigaunix | amix)
  418.           basic_machine=m68k-cbm
  419. !         os=-amix
  420.           ;;
  421.       cray | ymp)
  422. ***************
  423. *** 350,373 ****
  424.           os=-ebmon
  425.           ;;
  426. !     h8300hms)
  427. !         basic_machine=h8300-hitachi
  428. !         os=-hms
  429. !         ;;
  430. !     udi29k)
  431. !         basic_machine=a29k-amd
  432. !         os=-udi
  433. !         ;;
  434. !     a29khif)
  435. !         basic_machine=a29k-amd
  436. !         os=-udi
  437. !         ;;
  438. !     sa29200)
  439. !         basic_machine=a29k-amd
  440. !         os=-udi
  441. !         ;;
  442. !     h8300xray)
  443.           basic_machine=h8300-hitachi
  444. !         os=-xray
  445.           ;;
  446.       harris)
  447. --- 346,352 ----
  448.           os=-ebmon
  449.           ;;
  450. !     h8300hds)
  451.           basic_machine=h8300-hitachi
  452. !         os=-hds
  453.           ;;
  454.       harris)
  455. ***************
  456. *** 391,410 ****
  457.           os=-hpux
  458.           ;;
  459. -     hppabsd)
  460. -         basic_machine=hppa-hp
  461. -         os=-bsd
  462. -         ;;
  463. -     hppahpux)
  464. -         basic_machine=hppa-hp
  465. -         os=-hpux
  466. -         ;;
  467.       ncr3000)
  468. !         basic_machine=i386-ncr
  469.           os=-sysv4
  470.           ;;
  471. -     necv70)
  472. -         basic_machine=v70-nec
  473. -         os=-sysv
  474. -         ;;
  475.       news1000)
  476.           basic_machine=m68030-sony
  477. --- 370,377 ----
  478.           os=-hpux
  479.           ;;
  480.       ncr3000)
  481. !         basic_machine=i486-ncr
  482.           os=-sysv4
  483.           ;;
  484.       news1000)
  485.           basic_machine=m68030-sony
  486. ***************
  487. *** 435,447 ****
  488.           os=-vxworks
  489.           ;;
  490. -     os68k)
  491. -         basic_machine=m68k-none
  492. -         os=-os68k
  493. -         ;;
  494. -     sparclite)
  495. -         basic_machine=sparclite-fujitsu
  496. -         os=-none
  497. -         ;;
  498.       none)
  499.           basic_machine=none-none
  500. --- 402,405 ----
  501. ***************
  502. *** 463,472 ****
  503.           basic_machine=vax-dec
  504.           ;;
  505.       sparc)
  506.           basic_machine=sparc-sun
  507.           ;;
  508. -     fx2800)
  509. -         basic_machine=i860-alliant
  510. -         ;;
  511.       *)
  512.           echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  513. --- 421,430 ----
  514.           basic_machine=vax-dec
  515.           ;;
  516. +     we32k)
  517. +         basic_machine=we32k-att
  518. +         ;;
  519.       sparc)
  520.           basic_machine=sparc-sun
  521.           ;;
  522.       *)
  523.           echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  524. ***************
  525. *** 475,478 ****
  526. --- 433,448 ----
  527.   esac
  528.   
  529. + # Here we canonicalize certain aliases for manufacturers.
  530. + case $basic_machine in
  531. +     *-digital*)
  532. +         basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  533. +         ;;
  534. +     *-commodore*)
  535. +         basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  536. +         ;;
  537. +     *)
  538. +         ;;
  539. + esac
  540.   # Decode manufacturer-specific aliases for certain operating systems.
  541.   
  542. ***************
  543. *** 483,503 ****
  544.       # The portable systems comes first.
  545.       # Each alternative must end in a *, to match a version number.
  546. !     -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -aout \
  547.             | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
  548. !           | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solaris* | -sym* \
  549. !           | -newsos | -amigados* | -msdos* | -none* | -os68k* | -irix* \
  550. !           | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray \
  551. !           | -m88kbcs* | -go32 | -linux*)
  552. !     ;;
  553. ! # Note that readline checks for newsos
  554. ! #    -newsos*)
  555. ! #        os=-bsd
  556. ! #        ;;
  557.       -osfrose*)
  558. !         os=-osf
  559.           ;;
  560.       -osf*)
  561. !         os=-bsd
  562.           ;;
  563.       -dynix*)
  564. --- 453,467 ----
  565.       # The portable systems comes first.
  566.       # Each alternative must end in a *, to match a version number.
  567. !     -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  568.             | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
  569. !           | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* | -amix* \
  570. !           | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  571. !           | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
  572. !         ;;
  573.       -osfrose*)
  574. !         os=-osfrose
  575.           ;;
  576.       -osf*)
  577. !         os=-osf
  578.           ;;
  579.       -dynix*)
  580. ***************
  581. *** 504,509 ****
  582.           os=-bsd
  583.           ;;
  584. !     -aos*)
  585. !         os=-bsd
  586.           ;;
  587.       -ctix* | -uts*)
  588. --- 468,473 ----
  589.           os=-bsd
  590.           ;;
  591. !     -acis*)
  592. !         os=-aos
  593.           ;;
  594.       -ctix* | -uts*)
  595. ***************
  596. *** 510,513 ****
  597. --- 474,483 ----
  598.           os=-sysv
  599.           ;;
  600. +     -triton*)
  601. +         os=-sysv3
  602. +         ;;
  603. +     -oss*)
  604. +         os=-sysv3
  605. +         ;;
  606.       -svr4)
  607.           os=-sysv4
  608. ***************
  609. *** 516,519 ****
  610. --- 486,491 ----
  611.           os=-sysv3
  612.           ;;
  613. +     -none)
  614. +         ;;
  615.       *)
  616.           # Get rid of the `-' at the beginning of $os.
  617. ***************
  618. *** 530,537 ****
  619.   case $basic_machine in
  620.       *-dec | vax-*)
  621. !         os=-ultrix42
  622.           ;;
  623.       i386-sun)
  624. !         os=-sunos402
  625.           ;;
  626.       m68000-sun)
  627. --- 502,509 ----
  628.   case $basic_machine in
  629.       *-dec | vax-*)
  630. !         os=-ultrix4.2
  631.           ;;
  632.       i386-sun)
  633. !         os=-sunos4.0.2
  634.           ;;
  635.       m68000-sun)
  636. ***************
  637. *** 541,549 ****
  638.           # os=-sunos4
  639.           ;;
  640. !     sparc-* | *-sun)
  641. !         os=-sunos411
  642.           ;;
  643. !     romp-*)
  644. !         os=-bsd
  645.           ;;
  646.       *-ibm)
  647. --- 513,521 ----
  648.           # os=-sunos4
  649.           ;;
  650. !     *-tti)    # must be before sparc entry or we get the wrong os.
  651. !         os=-sysv3
  652.           ;;
  653. !     sparc-* | *-sun)
  654. !         os=-sunos4.1.1
  655.           ;;
  656.       *-ibm)
  657. ***************
  658. *** 556,562 ****
  659. --- 528,540 ----
  660.           os=-sysv
  661.           ;;
  662. +     *-cbm)
  663. +         os=-amigados
  664. +         ;;
  665.       *-dg)
  666.           os=-dgux
  667.           ;;
  668. +     *-dolphin)
  669. +         os=-sysv3
  670. +         ;;
  671.       m88k-omron*)
  672.           os=-luna
  673. ***************
  674. *** 569,573 ****
  675.           ;;
  676.       i386-*)
  677. !         os=-scosysv322
  678.           ;;
  679.       *)
  680. --- 547,551 ----
  681.           ;;
  682.       i386-*)
  683. !         os=-sco3.2v2
  684.           ;;
  685.       *)
  686. diff -2rcN libg++-2.2/configure.in my-libg++-2.2/configure.in
  687. *** libg++-2.2/configure.in    Tue Jun 23 06:50:30 1992
  688. --- my-libg++-2.2/configure.in    Sun Jul  5 01:10:26 1992
  689. ***************
  690. *** 21,24 ****
  691. --- 21,25 ----
  692.   irix4)        host_makefile_frag=config/mh-irix4 ;;
  693.   linux)        host_makefile_frag=config/mh-linux ;;
  694. + amigados)    host_makefile_frag=config/mh-amigados ;;
  695.   ultrix*)
  696.       case "${host_cpu}" in
  697. diff -2rcN libg++-2.2/libg++/Makefile.in my-libg++-2.2/libg++/Makefile.in
  698. *** libg++-2.2/libg++/Makefile.in    Fri Jun 26 19:35:09 1992
  699. --- my-libg++-2.2/libg++/Makefile.in    Mon Jul  6 16:56:33 1992
  700. ***************
  701. *** 170,173 ****
  702. --- 170,174 ----
  703.   .NOEXPORT:
  704.   .PHONY: all
  705.   all: $(TARGETLIB) rest-in-parallel
  706.   
  707. diff -2rcN libg++-2.2/libg++/config/amigados.mh my-libg++-2.2/libg++/config/amigados.mh
  708. *** libg++-2.2/libg++/config/amigados.mh
  709. --- my-libg++-2.2/libg++/config/amigados.mh    Sun Jul  5 15:00:32 1992
  710. ***************
  711. *** 0 ****
  712. --- 1,16 ----
  713. + # do the best you can ;-)
  714. + CC = gcc -O2
  715. + # as long as we don't have a working debugger under AmigaDOS, using
  716. + # -g just wastes disk space, so don't use it
  717. + CFLAGS =
  718. + # Use -nostdinc++ flag if your version of gcc understands it.
  719. + NOSTDINC = -nostdinc++
  720. + # If the C include files are C++-ready (with extern "C"),
  721. + # define: HAVE_CPLUS_EXTERN = 1 and: WRAP_C_INCLUDES =
  722. + # If not, define HAVE_CPLUS_EXTERN = 0, and do not define WRAP_C_INCLUDES here
  723. + HAVE_CPLUS_EXTERN = 1
  724. + WRAP_C_INCLUDES =
  725. + XTRAFLAGS = -DNO_LIBGXX_MALLOC
  726. diff -2rcN libg++-2.2/libg++/configure.in my-libg++-2.2/libg++/configure.in
  727. *** libg++-2.2/libg++/configure.in    Fri Jun 26 19:32:57 1992
  728. --- my-libg++-2.2/libg++/configure.in    Sun Jul  5 14:53:42 1992
  729. ***************
  730. *** 18,21 ****
  731. --- 18,27 ----
  732.       esac
  733.       ;;
  734. + m68k)
  735. +     case "${host_os}" in
  736. +     amigados) my_host=amigados ;;
  737. +     *) ;;
  738. +     esac
  739. +     ;;
  740.   *)
  741.       case "${host_os}" in
  742. diff -2rcN libg++-2.2/libg++/iostream/ioprivate.h my-libg++-2.2/libg++/iostream/ioprivate.h
  743. *** libg++-2.2/libg++/iostream/ioprivate.h    Thu Jun 18 02:44:10 1992
  744. --- my-libg++-2.2/libg++/iostream/ioprivate.h    Sun Jul  5 14:48:23 1992
  745. ***************
  746. *** 18,22 ****
  747. --- 18,27 ----
  748.   #include <stddef.h>
  749.   #include <stdlib.h>
  750. + #ifdef amigados
  751. + /* amigados is not case sensitive ! */
  752. + #include "gcc:include/string.h"
  753. + #else
  754.   #include <string.h>
  755. + #endif
  756.   #include <unistd.h>
  757.   #include "streambuf.h"
  758. diff -2rcN libg++-2.2/libg++/src/BitSet.cc my-libg++-2.2/libg++/src/BitSet.cc
  759. *** libg++-2.2/libg++/src/BitSet.cc    Thu Jun 18 01:39:22 1992
  760. --- my-libg++-2.2/libg++/src/BitSet.cc    Sun Jul  5 14:43:50 1992
  761. ***************
  762. *** 30,34 ****
  763.   #include <new.h>
  764.   #include <builtin.h>
  765. ! #include <string.h>
  766.   #include <strstream.h>
  767.   
  768. --- 30,34 ----
  769.   #include <new.h>
  770.   #include <builtin.h>
  771. ! // #include <string.h>  // not needed, <std.h> includes <string.h>
  772.   #include <strstream.h>
  773.   
  774. diff -2rcN libg++-2.2/libg++/src/Integer.cc my-libg++-2.2/libg++/src/Integer.cc
  775. *** libg++-2.2/libg++/src/Integer.cc    Fri Jun 26 18:32:53 1992
  776. --- my-libg++-2.2/libg++/src/Integer.cc    Wed Jul  8 01:11:23 1992
  777. ***************
  778. *** 416,420 ****
  779.       {
  780.         if (d >= bound)
  781. !         return (rep->sgn == I_NEGATIVE) ? -HUGE : HUGE;
  782.         d *= 2.0;
  783.         if (rep->s[i] & a)
  784. --- 416,420 ----
  785.       {
  786.         if (d >= bound)
  787. !         return (rep->sgn == I_NEGATIVE) ? -HUGE_VAL : HUGE_VAL;
  788.         d *= 2.0;
  789.         if (rep->s[i] & a)
  790. ***************
  791. *** 461,465 ****
  792.     double d1 = double(q);
  793.    
  794. !   if (d1 == HUGE || d1 == -HUGE || sign(r) == 0)
  795.       return d1;
  796.     else      // use as much precision as available for fractional part
  797. --- 461,465 ----
  798.     double d1 = double(q);
  799.    
  800. !   if (d1 == HUGE_VAL || d1 == -HUGE_VAL || sign(r) == 0)
  801.       return d1;
  802.     else      // use as much precision as available for fractional part
  803. diff -2rcN libg++-2.2/libg++/src/Makefile.in my-libg++-2.2/libg++/src/Makefile.in
  804. *** libg++-2.2/libg++/src/Makefile.in    Thu Jun 18 01:39:45 1992
  805. --- my-libg++-2.2/libg++/src/Makefile.in    Mon Jul  6 16:49:22 1992
  806. ***************
  807. *** 79,84 ****
  808.    PlotFile.o  SFile.o
  809.   
  810. ! # Comment out if you're getting regex from somewhere else.
  811. ! REGEX_OBJ=regex.o
  812.   OBJS =  AllocRing.o Obstack.o builtin.o \
  813.    $(REGEX_OBJ) Regex.o String.o  Integer.o Rational.o Complex.o Random.o \
  814. --- 79,84 ----
  815.    PlotFile.o  SFile.o
  816.   
  817. ! # Comment out if you're getting _regex from somewhere else.
  818. ! REGEX_OBJ=_regex.o
  819.   OBJS =  AllocRing.o Obstack.o builtin.o \
  820.    $(REGEX_OBJ) Regex.o String.o  Integer.o Rational.o Complex.o Random.o \
  821. ***************
  822. *** 107,114 ****
  823.   WRAP_C_INCLUDES=-I$(srcdir)/../g++-include
  824.   
  825.   #### host, target, and site dependent Makefile fragments come in here.
  826.   ##
  827. - CFLAGS = -g
  828.   
  829.   .SUFFIXES: .cc .o
  830. --- 107,114 ----
  831.   WRAP_C_INCLUDES=-I$(srcdir)/../g++-include
  832.   
  833. + CFLAGS = -g
  834.   #### host, target, and site dependent Makefile fragments come in here.
  835.   ##
  836.   
  837.   .SUFFIXES: .cc .o
  838. diff -2rcN libg++-2.2/libg++/src/String.cc my-libg++-2.2/libg++/src/String.cc
  839. *** libg++-2.2/libg++/src/String.cc    Thu Jun 18 01:39:48 1992
  840. --- my-libg++-2.2/libg++/src/String.cc    Sun Jul  5 14:42:01 1992
  841. ***************
  842. *** 31,35 ****
  843. --- 31,39 ----
  844.   
  845.   // extern "C" {
  846. + #ifdef amigados
  847. + #include <_regex.h>
  848. + #else
  849.   #include <regex.h>
  850. + #endif
  851.   // }
  852.   
  853. diff -2rcN libg++-2.2/libg++/src/std.h my-libg++-2.2/libg++/src/std.h
  854. *** libg++-2.2/libg++/src/std.h    Fri Jun 26 18:33:05 1992
  855. --- my-libg++-2.2/libg++/src/std.h    Sun Jul  5 14:43:07 1992
  856. ***************
  857. *** 24,29 ****
  858. --- 24,34 ----
  859.   #include <stddef.h>
  860.   #include <stdlib.h>
  861. + #ifdef amigados
  862. + /* amigados is *not* case sensitive. <string.h> would load <String.h> ! */
  863. + #include "gcc:include/string.h"
  864. + #else
  865.   #include <string.h>
  866.   #include <memory.h>
  867. + #endif
  868.   #include <unistd.h>
  869.   #include <stdio.h> 
  870. diff -2rcN libg++-2.2/libg++/tests/tInteger.cc my-libg++-2.2/libg++/tests/tInteger.cc
  871. *** libg++-2.2/libg++/tests/tInteger.cc    Fri Jun 28 21:31:10 1991
  872. --- my-libg++-2.2/libg++/tests/tInteger.cc    Wed Jul  8 01:14:28 1992
  873. ***************
  874. *** 81,85 ****
  875.       x *= a;
  876.     }
  877. !   setbit(x, 0);
  878.     assert(testbit(x, 0));
  879.     assert(odd(x));
  880. --- 81,85 ----
  881.       x *= a;
  882.     }
  883. !   (setbit)(x, 0);
  884.     assert(testbit(x, 0));
  885.     assert(odd(x));
  886. ***************
  887. *** 102,105 ****
  888. --- 102,108 ----
  889.     assert( (a & (b | c)) ==  ((a & b) | (a & c)));
  890.     assert( (a | (b & c)) ==  ((a | b) & (a | c)));
  891. + //cout << "a = " << a << ", b = " << b << "\n";
  892. + //cout << "a & b = " << (a & b) << "\n";
  893. + //cout << "a | b = " << (a|b) << ", (a & (a|b)) = " << (a & (a|b)) << "\n";
  894.     assert( (a & (a | b)) ==  a);
  895.     assert( (a | (a & b)) ==  a);
  896. diff -2rcN libg++-2.2/libiberty/config/mh-amigados my-libg++-2.2/libiberty/config/mh-amigados
  897. *** libg++-2.2/libiberty/config/mh-amigados
  898. --- my-libg++-2.2/libiberty/config/mh-amigados    Sun Jul  5 01:01:32 1992
  899. ***************
  900. *** 0 ****
  901. --- 1,5 ----
  902. + # do the best you can ;-)
  903. + CC = gcc -O2
  904. + # as long as we don't have a working debugger under AmigaDOS, using
  905. + # -g just wastes disk space, so don't use it
  906. + CFLAGS =
  907. diff -2rcN libg++-2.2/libiberty/configure.in my-libg++-2.2/libiberty/configure.in
  908. *** libg++-2.2/libiberty/configure.in    Sat Jun 13 02:23:35 1992
  909. --- my-libg++-2.2/libiberty/configure.in    Sun Jul  5 02:00:33 1992
  910. ***************
  911. *** 14,17 ****
  912. --- 14,21 ----
  913.   case "${host_os}" in
  914.   
  915. + amigados)
  916. +     host_makefile_frag=config/mh-amigados
  917. +     ;;
  918.   sysv4 )
  919.       host_makefile_frag=config/mh-sysv4
  920. *** libg++-2.2/libg++/src/Regex.h    Thu Jun  4 00:16:02 1992
  921. --- my-libg++-2.2/libg++/src/_regex.h    Mon Jul  6 15:51:54 1992
  922. ***************
  923. *** 238,243 ****
  924.   
  925.   /* 4.2 bsd compatibility.  */
  926. ! extern char *re_comp (char *);
  927. ! extern int re_exec (char *);
  928.   
  929.   #else /* !__STDC__ */
  930. --- 238,243 ----
  931.   
  932.   /* 4.2 bsd compatibility.  */
  933. ! extern char *re_comp (const char *);
  934. ! extern int re_exec (const char *);
  935.   
  936.   #else /* !__STDC__ */
  937. *** libg++-2.2/libg++/src/Regex.cc    Fri Jun 26 18:33:02 1992
  938. --- my-libg++-2.2/libg++/src/_regex.cc    Sun Jul  5 14:41:34 1992
  939. ***************
  940. *** 53,57 ****
  941. --- 53,62 ----
  942.   #else  /* not emacs */
  943.   
  944. + #ifdef amigados
  945. + /* sigh.. lc == UC, so <string.h> would really include <String.h>.. */
  946. + #include "gcc:include/string.h"
  947. + #else
  948.   #include <string.h>
  949. + #endif /* amigados */
  950.   #include <_G_config.h>
  951.   
  952. ***************
  953. *** 123,127 ****
  954. --- 128,136 ----
  955.   
  956.   /* Get the interface, including the syntax bits.  */
  957. + #ifdef amigados
  958. + #include "_regex.h"
  959. + #else
  960.   #include "regex.h"
  961. + #endif
  962.   
  963.   
  964. ***************
  965. *** 2565,2569 ****
  966.   
  967.   char *
  968. ! re_comp (char *s)
  969.   {
  970.     if (!s)
  971. --- 2574,2578 ----
  972.   
  973.   char *
  974. ! re_comp (const char *s)
  975.   {
  976.     if (!s)
  977. ***************
  978. *** 2586,2590 ****
  979.   
  980.   int
  981. ! re_exec (char *s)
  982.   {
  983.     int len = strlen (s);
  984. --- 2595,2599 ----
  985.   
  986.   int
  987. ! re_exec (const char *s)
  988.   {
  989.     int len = strlen (s);
  990.